<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/AdminTemplate.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <f:view>
            <h:form>
                <h:outputText value="Create/Edit"/>
                <h:panelGrid columns="2">
                    <h:outputLabel value="FaqId:" for="faqId" />
                    <h:outputText id="faqId" value="#{faqControl.selectedFaq().faqId}" />
                    <h:outputLabel value="Asking:" for="asking" />
                    <h:inputTextarea rows="4" cols="30" id="asking" value="#{faqControl.selectedFaq().asking}" title="Asking" required="true" requiredMessage="The Asking field is required."/>
                    <h:outputLabel value="Answering:" for="answering" />
                    <h:inputTextarea rows="4" cols="30" id="answering" value="#{faqControl.selectedFaq().answering}" title="Answering" />
                </h:panelGrid>
            </h:form>
        </f:view>

    </ui:define>

</ui:composition>
